#ifndef _MYATOMIC_H_
#define _MYATOMIC_H_

#ifdef __cplusplus
extern "C" {
#endif




extern unsigned int atomic_set(unsigned int *area, int val);
extern unsigned int atomic_compare_set(unsigned int *area, int val);
extern unsigned int atomic_get(unsigned int *area);

extern bool atomic_compare(unsigned int *area, int val);

#ifdef __cplusplus
}
#endif

#endif
